package com.imooc.adapter;

/**
 * 二相转三相的插座适配器
 * @author Administrator
 *
 */
public class TwoPlugAdapter implements ThreePlugI {

	private GBTwoPlug twoPlug;
	
	public TwoPlugAdapter(GBTwoPlug twoPlug) {
		super();
		this.twoPlug = twoPlug;
	}

	@Override
	public void powerWithThree() {
		System.out.println("通过转化");
		twoPlug.powerWithTwo();
	}

}
